// filename: CEAUserTreelistUI.h
// author: enic
// date: 2015-11-09

#pragma once

#include "import_duilib.h"
#include "internal/XTreeNode.h"

namespace DuiLib
{
	class IMListItemInfo
	{
		int nLv;
	};

	class CEAUserTreeListUI : public CListUI
	{
	public:
		// type 
		typedef IMListItemInfo TNodeData;
		typedef _internal::XTreeNode<TNodeData> TTreeNode;
	public:
		CEAUserTreeListUI(CPaintManagerUI* pPM);

		TTreeNode* AddNode(const TNodeData& nodeData);
		bool UpdateItemBySId(const std::wstring& sId);
		void ClearItemMsgCount(const std::wstring& sId);
		void SortByOnlineState();

	private:
		TTreeNode* m_pRootNode;
	};

};